package com.sky.vo;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class CartItemVo implements Serializable {

    private Long skuId;

    private Boolean checked = true;

    private String title;

    private String image;

    private BigDecimal price;

    private String skuName;

    private Integer count;

    private BigDecimal totalPrice;

    private List<String> skuAttr;

    public BigDecimal getTotalPrice() {
        totalPrice = price.multiply(new BigDecimal(count));
        return totalPrice;
    }
}
